<?php
require_once '../Amfphp/Core/Config.php';
require_once '../Amfphp/ClassLoader.php';
require_once './config/ConfigDB.php';
require_once './config/ServerOptions.php';

$dir_array = explode(DIRECTORY_SEPARATOR,dirname(__FILE__));
$dir_array?array_pop($dir_array):1;
$dire = implode(DIRECTORY_SEPARATOR,$dir_array);
define("SERVER_PATH",$dire);
define("TEST_APP_PATH",dirname(__FILE__));

$testAppConfig = new Amfphp_Core_Config ();
$testAppConfig->serviceFolderPaths = array("./services/");

$gateway = Amfphp_Core_HttpRequestGatewayFactory::createGateway ( $testAppConfig );
$gateway->service ();

$gateway->output ();
?>